﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Web.myadmin.carMaintainInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>恒久汽修厂信息表</title>
<link href="/css/bkcss.css" rel="stylesheet" type="text/css" />
<meta name="author" content="田建军" />
<meta name="authorEmail" content="buzhizhe@qq.com" />
<meta name="description" content="应济宁黑马软件技术公司段总要求，为济宁恒久汽修厂特制的信息管理系统。本系统采用的asp.net+sqlserver的技术，采用本人制定的三层架构，简洁快速的完成需求，是一个功能简单单实用的小程序。" />
<script src="/js/function.js" type="text/javascript"></script>
<script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
</head>
<body>
<%--<h1>恒久汽修厂信息表</h1>--%>
<div id="DivPromptMessage" runat="server">
    <asp:Literal ID="litPromptMessage" runat="server"></asp:Literal>
</div>
    <form id="form1" runat="server">
  
<div id="divList" runat="server">
   
<div id="divQuery" runat="server">
     <table cellpadding="2" cellspacing="0" class="tblQuery">
	    <tr> 
		    <td class="tdQuery">
             <%--id：<asp:TextBox ID="txtQryId" runat="server"  CssClass="clsInput" ></asp:TextBox>--%>
             车辆所有人：<asp:TextBox ID="txtQryOwner" runat="server"  CssClass="clsInput" ></asp:TextBox>
             车牌号码：<asp:TextBox ID="txtQryCarNo" runat="server"  CssClass="clsInput" ></asp:TextBox>
             <asp:Button ID="btnQuery"  CssClass="btnQuery" runat="server" Text=" 查询 "  OnClick="btnQuery_Click" />&nbsp;
		     <asp:Button ID="btnExport"  CssClass="btnQuery" runat="server" Text=" 导出Excel " 
                    onclick="btnExport_Click" />&nbsp;
		     <input type="button" value="添加新信息" onclick="javascript:location.href='?cmd=add';"></input>
             </td>
	    </tr>
    </table>
</div>
    <asp:Repeater runat="server" ID="rptInfoList">
        <HeaderTemplate>
           <table cellspacing="0" cellpadding="2" class="tblList">
             <tr> 
	              <td class="tdListTop">编号 </td>
	              <td class="tdListTop">车辆所有人</td>
	              <td class="tdListTop">联系电话</td>
	              <td class="tdListTop">车牌号码</td>
	              <td class="tdListTop">车型</td>
	              <%--<td class="tdListTop">发动机号</td>--%>
	              <%--<td class="tdListTop">大架号</td>--%>
	              <%--<td class="tdListTop">登记日期</td>--%>
	              <%--<td class="tdListTop">吨位</td>--%>
	              <%--<td class="tdListTop">二维卡号</td>--%>
	              <td class="tdListTop">到期时间1</td>
	              <td class="tdListTop">到期时间2</td>
	              <td class="tdListTop">到期时间3</td>
	              <td class="tdListTop">到期天数</td>
	              <%--<td class="tdListTop">排序时间</td>--%>
	              <td class="tdListTop">操作</td>
             </tr>
          </HeaderTemplate>
          <ItemTemplate>
               <tr onmouseover="this.bgColor='#8CBDE7'" onmouseout="this.bgColor='#ffffff'"> 
	              <td class="tdList"><%# Eval("id") %></td>
	              <td class="tdList"><%# Eval("owner")%></td>
	              <td class="tdList"><%# Eval("telephone")%></td>
	              <td class="tdList"><%# Eval("carNo")%></td>
	              <td  class="tdList"><%# Eval("carType")%></td>
	              <%--<td  class="tdList"><%# Eval("loadNo")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("shelfNo")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("addDate")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("weights")%></td>--%>
	              <%--<td  class="tdList"><%# Eval("cardNo")%></td>--%>
	              <td  class="tdList"><%# displayDate(Eval("date1"))%></td>
	              <td  class="tdList"><%# displayDate(Eval("date2"))%></td>
	              <td  class="tdList"><%# displayDate(Eval("date3"))%></td>
	              <td  class="tdList"><%# displayDays(Eval("days"))%></td>
	              <%--<td  class="tdList"><%# Eval("sortDate")%></td>--%>
	              <td class="tdList">	
	                  <a href="?cmd=view&id=<%# Eval("id") %>" class="linkView" onclick="return openWin(this.href);">查看</a>&nbsp;
	                   <a href="?cmd=edit&id=<%# Eval("id") %>" class="linkEdit" onclick="return openWin(this.href);">修改</a>&nbsp;
	                   <a href="?cmd=delete&id=<%# Eval("id") %>" onclick="return confirm('确定是要删除该记录吗？')" class="linkDelete">删除</a>
	              </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
           </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="divPager">
         <asp:Literal ID="litPager" runat="server" ></asp:Literal>
    </div>
        
</div>

<div runat="server" id="divForm">
<table cellpadding="2" cellspacing="0" class="tblForm">
	<tr> 
		<td colspan="2" class="tdFormHead">  <asp:Label ID="lblFormTitle" runat="server" Text="修改"></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">车辆所有人：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtOwner" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">联系电话：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtTelephone" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">车牌号码：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtCarNo" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">车型：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtCarType" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">发动机号：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtLoadNo" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">大架号：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtShelfNo" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">登记日期：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtAddDate" runat="server"  CssClass="clsInput" 
                onclick="javascript:calendar();" Width="70px" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">吨位：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtWeights" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">二维卡号：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtCardNo" runat="server"  CssClass="clsInput" ></asp:TextBox></td>
	</tr>
	<tr> 
		<td class="tdFormLeft">二维卡到期时间：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtDate1" runat="server"  CssClass="clsInput" Width="70px" ></asp:TextBox>  
            <asp:TextBox ID="txtDate2" runat="server"  CssClass="clsInput" Width="72px" ></asp:TextBox>  
            <asp:TextBox ID="txtDate3" runat="server"  CssClass="clsInput" Width="66px" ></asp:TextBox></td>
	</tr>

	<tr> 
		<td class="tdFormLeft">营运到期：</td>
		<td class="tdFormRight">  
            <asp:TextBox ID="txtEndDate" runat="server"  CssClass="clsInput" Width="69px" ></asp:TextBox></td>
	</tr>

	<tr> 
		<td colspan="2" class="tdFormButtonRow">
         <asp:Button ID="btnSumit"  CssClass="btnSumit" runat="server" Text=" 发布 "  OnClick="btnSumit_Click" />
		<input class="btnCancel" type="reset" value=" 取消 " />
		<asp:TextBox ID="txtId" runat="server" style="display:none" Text="0"></asp:TextBox></td>
	</tr>
</table>
<script src="/js/lhgcalendar.min.js" type="text/javascript"></script>
	<script type="text/javascript">
	    $(function () {
	        $('#txtEndDate').calendar();
	        $('#txtDate1').calendar();
	        $('#txtDate2').calendar();
	        $('#txtDate3').calendar();
	        $('#txtAddDate').calendar();

	    });
	</script>

</div>

<div runat="server" id="divView">
<table cellpadding="2" cellspacing="0" class="tblView">
	<tr> 
		<td colspan="2" class="tdViewHead">  <asp:Label ID="lblViewTitle" runat="server" Text="查看"></asp:Label></td>
	</tr>
	<tr> 
		<td class="tdViewLeft">车辆所有人：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblOwner" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">联系电话：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblTelephone" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">车牌号码：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblCarNo" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">车型：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblCarType" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">发动机号：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblLoadNo" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">大架号：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblShelfNo" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">登记日期：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblAddDate" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">吨位：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblWeights" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">二维卡号：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblCardNo" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">到期时间1：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblDate1" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">到期时间2：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblDate2" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">到期时间3：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblDate3" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">营运到期：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblEndDate" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td class="tdViewLeft">排序时间：</td>
		<td class="tdViewRight">  
            <asp:Label ID="lblSortDate" runat="server" ></asp:Label>&nbsp;</td>
	</tr>
	<tr> 
		<td colspan="2"  class="tdViewButtonRow">
		<input class="btnCancel" type="button" value=" 关闭 "  onclick="javascript:window.opener=null;window.close();" /></td>
	</tr>
</table>
</div>
    
    </form>
</body>
</html>

